CJSON_INCLUDE_DIR = /opt/homebrew/Cellar/cjson/1.7.17/include
CJSON_LIB_DIR = /opt/homebrew/Cellar/cjson/1.7.17/lib
CJSON_LIB = -lcjson


ALL:
	mkdir -p output
	gcc -o output/object_co_bytes_demo object_co_bytes_demo.c  ../../src/util/hex_util.c ../../src/object/object_co_bytes.c ../../src/object/object_descriptor.c   -I ./ -I ../../src
	gcc -g -ggdb -o output/object_co_json_demo object_co_json_demo.c  ../../src/util/hex_util.c ../../src/object/object_co_json.c  ../../src/object/object_descriptor.c ${CJSON_LIB} -L ${CJSON_LIB_DIR} -I ${CJSON_INCLUDE_DIR}  -I ./ -I ../../src

clean:
	rm -rf output/*